home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / accessibility / nsIAccessibleHyperLink.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  5KB  |  166 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIAccessibleHyperLink.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIAccessibleHyperLink_h__
  6. #define __gen_nsIAccessibleHyperLink_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIURI; /* forward declaration */
  18.  
  19. class nsIAccessible; /* forward declaration */
  20.  
  21.  
  22. /* starting interface:    nsIAccessibleHyperLink */
  23. #define NS_IACCESSIBLEHYPERLINK_IID_STR "a492c7d6-1dd1-11b2-9bc0-80614884799a"
  24.  
  25. #define NS_IACCESSIBLEHYPERLINK_IID \
  26.   {0xa492c7d6, 0x1dd1, 0x11b2, \
  27.     { 0x9b, 0xc0, 0x80, 0x61, 0x48, 0x84, 0x79, 0x9a }}
  28.  
  29. class NS_NO_VTABLE nsIAccessibleHyperLink : public nsISupports {
  30.  public: 
  31.  
  32.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IACCESSIBLEHYPERLINK_IID)
  33.  
  34.   /* readonly attribute long anchors; */
  35.   NS_IMETHOD GetAnchors(PRInt32 *aAnchors) = 0;
  36.  
  37.   /* readonly attribute long startIndex; */
  38.   NS_IMETHOD GetStartIndex(PRInt32 *aStartIndex) = 0;
  39.  
  40.   /* readonly attribute long endIndex; */
  41.   NS_IMETHOD GetEndIndex(PRInt32 *aEndIndex) = 0;
  42.  
  43.   /* nsIURI getURI (in long i); */
  44.   NS_IMETHOD GetURI(PRInt32 i, nsIURI **_retval) = 0;
  45.  
  46.   /* nsIAccessible getObject (in long i); */
  47.   NS_IMETHOD GetObject(PRInt32 i, nsIAccessible **_retval) = 0;
  48.  
  49.   /* boolean isValid (); */
  50.   NS_IMETHOD IsValid(PRBool *_retval) = 0;
  51.  
  52.   /* boolean isSelected (); */
  53.   NS_IMETHOD IsSelected(PRBool *_retval) = 0;
  54.  
  55. };
  56.  
  57. /* Use this macro when declaring classes that implement this interface. */
  58. #define NS_DECL_NSIACCESSIBLEHYPERLINK \
  59.   NS_IMETHOD GetAnchors(PRInt32 *aAnchors); \
  60.   NS_IMETHOD GetStartIndex(PRInt32 *aStartIndex); \
  61.   NS_IMETHOD GetEndIndex(PRInt32 *aEndIndex); \
  62.   NS_IMETHOD GetURI(PRInt32 i, nsIURI **_retval); \
  63.   NS_IMETHOD GetObject(PRInt32 i, nsIAccessible **_retval); \
  64.   NS_IMETHOD IsValid(PRBool *_retval); \
  65.   NS_IMETHOD IsSelected(PRBool *_retval); 
  66.  
  67. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  68. #define NS_FORWARD_NSIACCESSIBLEHYPERLINK(_to) \
  69.   NS_IMETHOD GetAnchors(PRInt32 *aAnchors) { return _to GetAnchors(aAnchors); } \
  70.   NS_IMETHOD GetStartIndex(PRInt32 *aStartIndex) { return _to GetStartIndex(aStartIndex); } \
  71.   NS_IMETHOD GetEndIndex(PRInt32 *aEndIndex) { return _to GetEndIndex(aEndIndex); } \
  72.   NS_IMETHOD GetURI(PRInt32 i, nsIURI **_retval) { return _to GetURI(i, _retval); } \
  73.   NS_IMETHOD GetObject(PRInt32 i, nsIAccessible **_retval) { return _to GetObject(i, _retval); } \
  74.   NS_IMETHOD IsValid(PRBool *_retval) { return _to IsValid(_retval); } \
  75.   NS_IMETHOD IsSelected(PRBool *_retval) { return _to IsSelected(_retval); } 
  76.  
  77. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  78. #define NS_FORWARD_SAFE_NSIACCESSIBLEHYPERLINK(_to) \
  79.   NS_IMETHOD GetAnchors(PRInt32 *aAnchors) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAnchors(aAnchors); } \
  80.   NS_IMETHOD GetStartIndex(PRInt32 *aStartIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStartIndex(aStartIndex); } \
  81.   NS_IMETHOD GetEndIndex(PRInt32 *aEndIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEndIndex(aEndIndex); } \
  82.   NS_IMETHOD GetURI(PRInt32 i, nsIURI **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetURI(i, _retval); } \
  83.   NS_IMETHOD GetObject(PRInt32 i, nsIAccessible **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetObject(i, _retval); } \
  84.   NS_IMETHOD IsValid(PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsValid(_retval); } \
  85.   NS_IMETHOD IsSelected(PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsSelected(_retval); } 
  86.  
  87. #if 0
  88. /* Use the code below as a template for the implementation class for this interface. */
  89.  
  90. /* Header file */
  91. class nsAccessibleHyperLink : public nsIAccessibleHyperLink
  92. {
  93. public:
  94.   NS_DECL_ISUPPORTS
  95.   NS_DECL_NSIACCESSIBLEHYPERLINK
  96.  
  97.   nsAccessibleHyperLink();
  98.  
  99. private:
  100.   ~nsAccessibleHyperLink();
  101.  
  102. protected:
  103.   /* additional members */
  104. };
  105.  
  106. /* Implementation file */
  107. NS_IMPL_ISUPPORTS1(nsAccessibleHyperLink, nsIAccessibleHyperLink)
  108.  
  109. nsAccessibleHyperLink::nsAccessibleHyperLink()
  110. {
  111.   /* member initializers and constructor code */
  112. }
  113.  
  114. nsAccessibleHyperLink::~nsAccessibleHyperLink()
  115. {
  116.   /* destructor code */
  117. }
  118.  
  119. /* readonly attribute long anchors; */
  120. NS_IMETHODIMP nsAccessibleHyperLink::GetAnchors(PRInt32 *aAnchors)
  121. {
  122.     return NS_ERROR_NOT_IMPLEMENTED;
  123. }
  124.  
  125. /* readonly attribute long startIndex; */
  126. NS_IMETHODIMP nsAccessibleHyperLink::GetStartIndex(PRInt32 *aStartIndex)
  127. {
  128.     return NS_ERROR_NOT_IMPLEMENTED;
  129. }
  130.  
  131. /* readonly attribute long endIndex; */
  132. NS_IMETHODIMP nsAccessibleHyperLink::GetEndIndex(PRInt32 *aEndIndex)
  133. {
  134.     return NS_ERROR_NOT_IMPLEMENTED;
  135. }
  136.  
  137. /* nsIURI getURI (in long i); */
  138. NS_IMETHODIMP nsAccessibleHyperLink::GetURI(PRInt32 i, nsIURI **_retval)
  139. {
  140.     return NS_ERROR_NOT_IMPLEMENTED;
  141. }
  142.  
  143. /* nsIAccessible getObject (in long i); */
  144. NS_IMETHODIMP nsAccessibleHyperLink::GetObject(PRInt32 i, nsIAccessible **_retval)
  145. {
  146.     return NS_ERROR_NOT_IMPLEMENTED;
  147. }
  148.  
  149. /* boolean isValid (); */
  150. NS_IMETHODIMP nsAccessibleHyperLink::IsValid(PRBool *_retval)
  151. {
  152.     return NS_ERROR_NOT_IMPLEMENTED;
  153. }
  154.  
  155. /* boolean isSelected (); */
  156. NS_IMETHODIMP nsAccessibleHyperLink::IsSelected(PRBool *_retval)
  157. {
  158.     return NS_ERROR_NOT_IMPLEMENTED;
  159. }
  160.  
  161. /* End of implementation class template. */
  162. #endif
  163.  
  164.  
  165. #endif /* __gen_nsIAccessibleHyperLink_h__ */
  166.